//
//  DataBaseBoxImageModel.h
//  WuliHanhan
//
//  Created by tang on 16/3/17.
//  Copyright © 2016年 LVpeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Header.h"

typedef void(^getImageCallBack)(NSArray *ConnectIDArray, NSArray *imageDataArray);


typedef void(^getImageCallID)(NSArray *ConnectIDArray);


@interface DataBaseBoxImageModel : NSObject


SINGLETON_INTERFACE(DataBaseBoxImageModel);


//打开数据库
- (void)openDataBase;




//关闭数据库



//存储图片
- (void)writeImageWithConnectID:(NSString *)IDString withImageData:(NSData *)imageData;


//读取图片
- (void)readDownLoadImage:(getImageCallBack)callBack;


//读取图片ID
- (void)readDownLoadImageID:(getImageCallID)callBack;



//写入图片id
//- (void)writeCellIndex:(NSString *)string;



@end
